using System;
using System.Collections.Generic;
using System.Text;
using Curchy.PERTToolbox.Interface;
using System.ComponentModel;

namespace Curchy.PERTToolbox.Entity
{
    public class Calendar : IDescriptive
    {
        private string _name;
        private int _daysPerWeek;
        private double _hoursPerDay;

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }
        
        public int DaysPerWeek
        {
            get { return _daysPerWeek; }
            set { _daysPerWeek = value; }
        }

        public double HoursPerDay
        {
            get { return _hoursPerDay; }
            set { _hoursPerDay = value; }
        }

        public override string ToString()
        {
            return _name;
        }

        #region IDescriptive Members

        [Browsable(false)]
        public string Description
        {
            get { return _hoursPerDay + " h/d, " + _daysPerWeek.ToString() + " d/w"; }
        }

        #endregion
    }
}
